package com.nextpro.media.encoder;

import com.nextpro.media.interfaces.ProcessPublisher;
import com.sun.java.swing.plaf.windows.resources.windows;

/**
 * Created by Administrator on 14-2-18.
 */
public class PlatFormEncoder {
    final public static String osName = System.getProperties().getProperty("os.name").toLowerCase(); //操作系统名称
    public static Encoder createEncoder(ProcessPublisher processPublisher){
       if (osName.contains("windows")){
           return new W32Encoder(processPublisher);
       }else if (osName.contains("mac")){
           return new OSXEncoder();
       }else {
           return new GUNLinuxEncoder();
       }
    }
}
